home *** CD-ROM | disk | FTP | other *** search
/ Joint Education Initiative / Joint Education Initiative.iso / programs / dos / gna / image / contour / magsat / magsat.doc < prev    next >
Text File  |  1989-03-24  |  3KB  |  57 lines

  1. GEOPHYSICS OF NORTH AMERICA - MAGSAT CONTOURS                 magsat.doc
  2.  
  3. This directory contains the Magsat contours.
  4.  
  5. In order to understand how the data are arranged, one must understand
  6. something about the process of generating these data.  The contouring was
  7. done in 3 regions each 59 degrees wide.  Each contiguous section of each
  8. contour line is called a segment and each segment is made up of some number
  9. of line fragments.  Each segment starts with an implicit move command and
  10. the fragments are the endpoints of a series of draw commands.  The data
  11. storage scheme therefore has three basic units: regions, segments, and
  12. points (where points are the ends of fragments).
  13.  
  14. The regionalization of the data is expressed in the file structure.  The
  15. data are stored in 3 files, each called MAGSAT.NUM, where NUM is the region
  16. number.  Each data file has the longitude and latitude pairs of the
  17. endpoints of the contour lines for all of the contours within the given
  18. region.  These values are stored in two 4-byte floating point numbers.
  19.  
  20. Parameters for MAGSAT contour Regions:
  21.   Region   Minimum  Minimum   Maximum  Maximum Number of Number of
  22.          Longitude Latitude Longitude Latitude  Segments    Points
  23.        0       170        0       229       50        98     12188
  24.        1       229        0       289       50       149     19737
  25.        2       289        0       349       50       121     14783
  26.  
  27. The index file (MAGSAT.INX) contains information about the segments.  There
  28. is one 20 byte record for each segment.  Each record contains the contour
  29. level for the segment (2 byte integer), the minimum longitude (degrees
  30. east), minimum latitude, maximum longitude (degrees east), maximum latitude
  31. of the box surrounding the segment (each a 4 byte floating point number),
  32. and the number of points in the segment (2 byte integer).  The relationship
  33. between the index file and the data files is known through the byte offset
  34. to the beginning of each data set in the index file.  These byte offsets can
  35. be calculated from the number of segments in each data set (20 * cumulative
  36. number of segments).
  37.  
  38. The contour level is a relative value related to the actual data value and
  39. contour interval as follows:
  40.     Contour interval = 1 nanoTessla
  41.     First contour level   =  1   Contour data value = -10 nanoTesslas
  42.     Zero  contour level   = 11   Contour data value =   0 nanoTesslas
  43.     Maximum contour level = 25   Contour data value =  14 nanoTesslas
  44.  
  45. These are the offsets in bytes to the first segment of each region in the
  46. MAGSAT contour index file
  47.  
  48.   Region Offset Region Offset Region Offset
  49.        0      0      1   1960      2   4940
  50.  
  51. The region parameters and the byte offsets are contained in the file
  52. contour.h which is on your program disk. 
  53.  
  54. The programs listindx and listdata (on the accompanying diskette) read the
  55. index and data files respectively and output the contents to standard output
  56. as ASCII. 
  57.